package com.apes.fn.mdm.offer.repository;

import com.apes.fn.mdm.offer.model.OfferGroup;
import com.apes.framework.jpa.repository.CustomRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;
import java.util.Set;

public interface OfferGroupRepository extends CustomRepository<OfferGroup,String> {

        List<OfferGroup> findByNameIn(List<String> offers);

        @Query(value = "SELECT NAME FROM mas_offer_group", nativeQuery = true)
        List<String> findAllName();


}
